package com.gridmobi.xrtb.domain.dsp;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class JOfferBlacklistExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public JOfferBlacklistExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOfferuidIsNull() {
            addCriterion("offeruid is null");
            return (Criteria) this;
        }

        public Criteria andOfferuidIsNotNull() {
            addCriterion("offeruid is not null");
            return (Criteria) this;
        }

        public Criteria andOfferuidEqualTo(Integer value) {
            addCriterion("offeruid =", value, "offeruid");
            return (Criteria) this;
        }

        public Criteria andOfferuidNotEqualTo(Integer value) {
            addCriterion("offeruid <>", value, "offeruid");
            return (Criteria) this;
        }

        public Criteria andOfferuidGreaterThan(Integer value) {
            addCriterion("offeruid >", value, "offeruid");
            return (Criteria) this;
        }

        public Criteria andOfferuidGreaterThanOrEqualTo(Integer value) {
            addCriterion("offeruid >=", value, "offeruid");
            return (Criteria) this;
        }

        public Criteria andOfferuidLessThan(Integer value) {
            addCriterion("offeruid <", value, "offeruid");
            return (Criteria) this;
        }

        public Criteria andOfferuidLessThanOrEqualTo(Integer value) {
            addCriterion("offeruid <=", value, "offeruid");
            return (Criteria) this;
        }

        public Criteria andOfferuidIn(List<Integer> values) {
            addCriterion("offeruid in", values, "offeruid");
            return (Criteria) this;
        }

        public Criteria andOfferuidNotIn(List<Integer> values) {
            addCriterion("offeruid not in", values, "offeruid");
            return (Criteria) this;
        }

        public Criteria andOfferuidBetween(Integer value1, Integer value2) {
            addCriterion("offeruid between", value1, value2, "offeruid");
            return (Criteria) this;
        }

        public Criteria andOfferuidNotBetween(Integer value1, Integer value2) {
            addCriterion("offeruid not between", value1, value2, "offeruid");
            return (Criteria) this;
        }

        public Criteria andSubidIsNull() {
            addCriterion("subid is null");
            return (Criteria) this;
        }

        public Criteria andSubidIsNotNull() {
            addCriterion("subid is not null");
            return (Criteria) this;
        }

        public Criteria andSubidEqualTo(String value) {
            addCriterion("subid =", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidNotEqualTo(String value) {
            addCriterion("subid <>", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidGreaterThan(String value) {
            addCriterion("subid >", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidGreaterThanOrEqualTo(String value) {
            addCriterion("subid >=", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidLessThan(String value) {
            addCriterion("subid <", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidLessThanOrEqualTo(String value) {
            addCriterion("subid <=", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidLike(String value) {
            addCriterion("subid like", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidNotLike(String value) {
            addCriterion("subid not like", value, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidIn(List<String> values) {
            addCriterion("subid in", values, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidNotIn(List<String> values) {
            addCriterion("subid not in", values, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidBetween(String value1, String value2) {
            addCriterion("subid between", value1, value2, "subid");
            return (Criteria) this;
        }

        public Criteria andSubidNotBetween(String value1, String value2) {
            addCriterion("subid not between", value1, value2, "subid");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Integer value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Integer value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Integer value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Integer value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Integer value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Integer> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Integer> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Integer value1, Integer value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Integer value1, Integer value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andBlacktypeIsNull() {
            addCriterion("blacktype is null");
            return (Criteria) this;
        }

        public Criteria andBlacktypeIsNotNull() {
            addCriterion("blacktype is not null");
            return (Criteria) this;
        }

        public Criteria andBlacktypeEqualTo(Integer value) {
            addCriterion("blacktype =", value, "blacktype");
            return (Criteria) this;
        }

        public Criteria andBlacktypeNotEqualTo(Integer value) {
            addCriterion("blacktype <>", value, "blacktype");
            return (Criteria) this;
        }

        public Criteria andBlacktypeGreaterThan(Integer value) {
            addCriterion("blacktype >", value, "blacktype");
            return (Criteria) this;
        }

        public Criteria andBlacktypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("blacktype >=", value, "blacktype");
            return (Criteria) this;
        }

        public Criteria andBlacktypeLessThan(Integer value) {
            addCriterion("blacktype <", value, "blacktype");
            return (Criteria) this;
        }

        public Criteria andBlacktypeLessThanOrEqualTo(Integer value) {
            addCriterion("blacktype <=", value, "blacktype");
            return (Criteria) this;
        }

        public Criteria andBlacktypeIn(List<Integer> values) {
            addCriterion("blacktype in", values, "blacktype");
            return (Criteria) this;
        }

        public Criteria andBlacktypeNotIn(List<Integer> values) {
            addCriterion("blacktype not in", values, "blacktype");
            return (Criteria) this;
        }

        public Criteria andBlacktypeBetween(Integer value1, Integer value2) {
            addCriterion("blacktype between", value1, value2, "blacktype");
            return (Criteria) this;
        }

        public Criteria andBlacktypeNotBetween(Integer value1, Integer value2) {
            addCriterion("blacktype not between", value1, value2, "blacktype");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createtime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createtime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createtime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createtime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createtime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createtime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createtime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createtime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createtime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createtime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createtime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createtime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andOfferidIsNull() {
            addCriterion("offerid is null");
            return (Criteria) this;
        }

        public Criteria andOfferidIsNotNull() {
            addCriterion("offerid is not null");
            return (Criteria) this;
        }

        public Criteria andOfferidEqualTo(String value) {
            addCriterion("offerid =", value, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidNotEqualTo(String value) {
            addCriterion("offerid <>", value, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidGreaterThan(String value) {
            addCriterion("offerid >", value, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidGreaterThanOrEqualTo(String value) {
            addCriterion("offerid >=", value, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidLessThan(String value) {
            addCriterion("offerid <", value, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidLessThanOrEqualTo(String value) {
            addCriterion("offerid <=", value, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidLike(String value) {
            addCriterion("offerid like", value, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidNotLike(String value) {
            addCriterion("offerid not like", value, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidIn(List<String> values) {
            addCriterion("offerid in", values, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidNotIn(List<String> values) {
            addCriterion("offerid not in", values, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidBetween(String value1, String value2) {
            addCriterion("offerid between", value1, value2, "offerid");
            return (Criteria) this;
        }

        public Criteria andOfferidNotBetween(String value1, String value2) {
            addCriterion("offerid not between", value1, value2, "offerid");
            return (Criteria) this;
        }

        public Criteria andAffiliateidIsNull() {
            addCriterion("affiliateid is null");
            return (Criteria) this;
        }

        public Criteria andAffiliateidIsNotNull() {
            addCriterion("affiliateid is not null");
            return (Criteria) this;
        }

        public Criteria andAffiliateidEqualTo(Integer value) {
            addCriterion("affiliateid =", value, "affiliateid");
            return (Criteria) this;
        }

        public Criteria andAffiliateidNotEqualTo(Integer value) {
            addCriterion("affiliateid <>", value, "affiliateid");
            return (Criteria) this;
        }

        public Criteria andAffiliateidGreaterThan(Integer value) {
            addCriterion("affiliateid >", value, "affiliateid");
            return (Criteria) this;
        }

        public Criteria andAffiliateidGreaterThanOrEqualTo(Integer value) {
            addCriterion("affiliateid >=", value, "affiliateid");
            return (Criteria) this;
        }

        public Criteria andAffiliateidLessThan(Integer value) {
            addCriterion("affiliateid <", value, "affiliateid");
            return (Criteria) this;
        }

        public Criteria andAffiliateidLessThanOrEqualTo(Integer value) {
            addCriterion("affiliateid <=", value, "affiliateid");
            return (Criteria) this;
        }

        public Criteria andAffiliateidIn(List<Integer> values) {
            addCriterion("affiliateid in", values, "affiliateid");
            return (Criteria) this;
        }

        public Criteria andAffiliateidNotIn(List<Integer> values) {
            addCriterion("affiliateid not in", values, "affiliateid");
            return (Criteria) this;
        }

        public Criteria andAffiliateidBetween(Integer value1, Integer value2) {
            addCriterion("affiliateid between", value1, value2, "affiliateid");
            return (Criteria) this;
        }

        public Criteria andAffiliateidNotBetween(Integer value1, Integer value2) {
            addCriterion("affiliateid not between", value1, value2, "affiliateid");
            return (Criteria) this;
        }

        public Criteria andComputetimeIsNull() {
            addCriterion("computetime is null");
            return (Criteria) this;
        }

        public Criteria andComputetimeIsNotNull() {
            addCriterion("computetime is not null");
            return (Criteria) this;
        }

        public Criteria andComputetimeEqualTo(Date value) {
            addCriterion("computetime =", value, "computetime");
            return (Criteria) this;
        }

        public Criteria andComputetimeNotEqualTo(Date value) {
            addCriterion("computetime <>", value, "computetime");
            return (Criteria) this;
        }

        public Criteria andComputetimeGreaterThan(Date value) {
            addCriterion("computetime >", value, "computetime");
            return (Criteria) this;
        }

        public Criteria andComputetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("computetime >=", value, "computetime");
            return (Criteria) this;
        }

        public Criteria andComputetimeLessThan(Date value) {
            addCriterion("computetime <", value, "computetime");
            return (Criteria) this;
        }

        public Criteria andComputetimeLessThanOrEqualTo(Date value) {
            addCriterion("computetime <=", value, "computetime");
            return (Criteria) this;
        }

        public Criteria andComputetimeIn(List<Date> values) {
            addCriterion("computetime in", values, "computetime");
            return (Criteria) this;
        }

        public Criteria andComputetimeNotIn(List<Date> values) {
            addCriterion("computetime not in", values, "computetime");
            return (Criteria) this;
        }

        public Criteria andComputetimeBetween(Date value1, Date value2) {
            addCriterion("computetime between", value1, value2, "computetime");
            return (Criteria) this;
        }

        public Criteria andComputetimeNotBetween(Date value1, Date value2) {
            addCriterion("computetime not between", value1, value2, "computetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}